package com.dahua.messagesyncsh.business.mitsubishi.http;

/**
 * 返回状态码及解释
 * 所有的枚举不允许有拼写错误、需要大写或者下划线、需要放到符合异常的位置
 *
 * @author smec
 * 2021/8/13
 */
public enum ResultEnum {
    /**
     * 基础状态码-成功
     */
    SUCCESS("2000", "success"),
    FAIL("5000", "fail"),



    ;


    private final String code;
    private final String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
